package com.authine.cloudpivot.ext.mapper;

import com.authine.cloudpivot.ext.domain.HOrgDepartment;
import com.authine.cloudpivot.util.MyMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
@Mapper
public interface HOrgDepartmentMapper extends MyMapper<HOrgDepartment> {
    @Select("SELECT id FROM `h_org_department` where parentId = #{id}")
    List<String> getSonDeptIds(String id);
}